package books4africa

/////////////////////////////////////////
//Donor Class
//
//The donor object represented the user
//who is logged in and donating books.
//includes fields for the necessary account
//information

class Donor extends SecUser {
	//String username;
	//String password;
	String name;
	String bio;
	def listOfCategories;
	
    static constraints = {
		//the UserID must be a valid email address
		//username(matches: '^[_a-z0-9-]+(\\.[_a-z0-9-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*(\\.[a-z]{2,4})$',	maxSize: 50);
		//password can only be 6-8 chars long and cannot match the userid
		//password(size: 6..8);
		name(nullable: true);
		bio(nullable: true, maxSize: 1000);
		
		listOfCategories(nullable: true);
    }
}
